package com.wc.AlgoOJ_train.train1.c1.A104;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2023/12/26 4:09
 * 海选女主角
 * http://43.138.190.70:8888/p/A104
 * @description
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        while (sc.hasNextInt()) {
            int m = sc.nextInt();
            int n = sc.nextInt();
            long maxN = 0;
            int ansX = 0;
            int anxY = 0;
            for (int i = 1; i <= m; i++) {
                for (int j = 1; j <= n; j++) {
                    long score = sc.nextLong();
                    if (Math.abs(score) > Math.abs(maxN)) {
                        maxN = score;
                        ansX = i;
                        anxY = j;
                    }
                }
            }
            System.out.println(ansX + " " + anxY + " " + maxN);
        }
    }
}
